package com.woniuxy.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("商品上传数据")
public class ProductDto {
    @NotBlank(message = "商品名称不能为空！")
    @ApiModelProperty("商品名称")
    private String pname ;
    @NotBlank(message = "商品明细不能为空")
    @ApiModelProperty("商品明细")
    private String detail ;


}